package com.bizfx.events
{	
	import flash.events.Event;
	
	import com.bizfx.component.views.ViewCommand;

	public class ViewCommandEvent extends Event
	{
		private var _viewCommand:ViewCommand;
		
		/**
		 * 激发事件的ViewCommand
		 */
		public function get viewCommand(): ViewCommand
		{
			return _viewCommand;  
		}
		
		public function set viewCommand(value: ViewCommand):void
		{
			_viewCommand = value;
		} 
		
		public function ViewCommandEvent(type:String, viewCommand:ViewCommand) {
			super(type, true);
			if (viewCommand != null) {
				_viewCommand = viewCommand;
			}
		}
		
		public static const ViewCommand_Raise:String = "viewCommandRaise";
	}
}